package practice01;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice01
 * @ClassName: Teacher
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/8 13:23
 * @Copyright 大牛版板所有
 */
public class Teacher {
    private String name;
    private String gender;
    private int age;
    private int teachAge;
    private String teachAddress;


    public Teacher() {
    }
    public Teacher(String name, String gender, int age, int teachAge, String teachAddress) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.teachAge = teachAge;
        this.teachAddress = teachAddress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachAge() {
        return teachAge;
    }

    public void setTeachAge(int teachAge) {
        this.teachAge = teachAge;
    }

    public String getTeachAddress() {
        return teachAddress;
    }

    public void setTeachAddress(String teachAddress) {
        this.teachAddress = teachAddress;
    }

    public void teaching(){

    }
    public void intro(){
        System.out.println("大家好，我叫"+this.getName()+"，性别是"+this.getGender()+"，今年已经"+this.getAge()
                +"岁了，在"+this.getTeachAddress()+"中心已经教学"+this.getTeachAge()+"年了。");
    }
}
